<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" exclude-result-prefixes="xsl xe msxsl CM" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xe="http://www.CrossFactory.net/XmlEditor" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:CM="http://www.CrossFactory.net/ContentManager/">
	<xsl:import href="%URLGlobalXslt%"/>
	<xsl:output method="xml" version="1.0" omit-xml-declaration="yes" indent="no"/>
	<!-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -->
	<xsl:template match="InstantSurveycontent">
		<table class="InstantSurveyContent" valign="top" border="0" cellpadding="0" cellspacing="0" width="100%">
			<xsl:call-template name="XmlEditorInfo"/>
			<tr>
				<td width="100%">&#xa0;
					<xsl:apply-templates select="instantsurvey">
					</xsl:apply-templates>
				</td>
			</tr>
		</table>
	</xsl:template>
	<!-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -->
	<xsl:template match="instantsurvey">
		<div class="SiteNOTE_InstantSurvey">
			<xsl:call-template name="XmlEditorInfo"/>
			<xsl:apply-templates select="title"/>
			<xsl:apply-templates select="question"/>
			<table class="SiteNOTE_InstantSurvey_RadioButtonList" border="0">
				<tbody>
					<xsl:apply-templates select="answer"/>
				</tbody>
			</table>
		</div>
	</xsl:template>
	<!-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -->
	<xsl:template match="title">
		<div class="SiteNOTE_InstantSurvey_Title">
			<xsl:call-template name="XmlEditorInfo"/>
			<xsl:call-template name="XmlEditorStartTextBlock"/>
			<xsl:if test="string-length(translate(text(), ' ', '')) = 0 and string-length(translate(stylerule/text(), ' ', '')) = 0 and string-length(translate(hyperlink/text(), ' ', '')) = 0">
				<xsl:value-of select="$xe:labels/label[name = 'title']/*[name(.) = $xe:userLanguage]/text()"/>
			</xsl:if>
			<xsl:apply-templates/>
			<xsl:call-template name="XmlEditorEndTextBlock"/>
		</div>
	</xsl:template>
	<!-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -->
	<xsl:template match="question">
		<div class="SiteNOTE_InstantSurvey_Question">
			<xsl:call-template name="XmlEditorInfo"/>
			<xsl:call-template name="XmlEditorStartTextBlock"/>
			<xsl:if test="string-length(translate(text(), ' ', '')) = 0 and string-length(translate(stylerule/text(), ' ', '')) = 0 and string-length(translate(hyperlink/text(), ' ', '')) = 0">
				<xsl:value-of select="$xe:labels/label[name = 'question']/*[name(.) = $xe:userLanguage]/text()"/>
			</xsl:if>
			<xsl:apply-templates/>
			<xsl:call-template name="XmlEditorEndTextBlock"/>
		</div>
	</xsl:template>
	<!-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -->
	<xsl:template match="answer">
		<tr>
			<td>
				<input value="0" type="radio" name="RadioButtonListAnswers"/>
				<label>
					<xsl:call-template name="XmlEditorInfo"/>
					<xsl:call-template name="XmlEditorStartTextBlock">
						<xsl:with-param name="allowEnter">yes</xsl:with-param>
					</xsl:call-template>
					<xsl:if test="string-length(translate(text(), ' ', '')) = 0 and string-length(translate(stylerule/text(), ' ', '')) = 0 and string-length(translate(hyperlink/text(), ' ', '')) = 0">
						<xsl:value-of select="$xe:labels/label[name = 'answer']/*[name(.) = $xe:userLanguage]/text()"/>
					</xsl:if>
					<xsl:value-of select="." disable-output-escaping="yes"/>
					<xsl:call-template name="XmlEditorEndTextBlock"/>
				</label>
			</td>
		</tr>
	</xsl:template>
	<!--xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-->
</xsl:stylesheet>
